<template>
  <div class="App">
    <h1 class="content">我是App</h1>
    <p>{{count}}</p>
    <!-- 
      props传递数据，用给子组件添加属性的方式传递 ，prosp传值
     -->
    <Count :count="count" v-bind="news"/>
  </div>
</template>

<script>
import Count from '@/components/Count';


export default {
  name: 'App',
  components: {
    Count,
  },
 data(){
  return {
    count:0,
    news:{
      imgUrl:"/01.jpg",
      title:"今天你困不困...",
      otherTitle:"困就回家睡会吧"
    }
  }
 },

}
</script>



